
var content = document.querySelector(".content")
var text = content.innerHTML
 


var newHtml = text.replace(/\s+.+/g, function (s) {
    s = s.replace(/\s/g, '')

    return `<p>${s}</P>`

})

content.innerHTML = newHtml


console.log(result);
